<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>角色管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" th:href="@{/layuiadmin/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/layuiadmin/style/admin.css}" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <form>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">角色名称：</label>
                        <div class="layui-input-block">
                            <input type="text" name="roleName" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn layuiadmin-btn-admin" lay-submit lay-filter="role-search">
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                        </button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>

        <div class="layui-card-body">
            <table id="role-table" lay-filter="role-table"></table>
            <script type="text/html" id="role-toolbar">
                <div class="layui-btn-container">
                    {{# if(layui.data('auth').authList.includes("role:add")){ }}
                    <button class="layui-btn layui-btn-sm" lay-event="add">添加</button>
                    {{# } }}
                </div>
            </script>
        </div>
    </div>
</div>


<script th:src="@{/layuiadmin/layui/layui.js}" charset="utf-8"></script>
<script>
layui.config({
  base: '/layuiadmin/'
}).extend({
    roleList: 'res/js/modules/role/roleList'
}).use('roleList',{})
</script>
</body>
</html>